package org.nlp2rdf.navigator.server.tiger;

import com.hp.hpl.jena.ontology.OntModel;
import com.hp.hpl.jena.ontology.OntModelSpec;
import com.hp.hpl.jena.rdf.model.ModelFactory;

public class Config {

	public static final String W = "w";
	public static final String S = "s";
	public static final String _ = "_";
	
	public static String prefix = "http://nlp2rdf.org/ontology/";
	

	public static Config getConfig(){
		return new Config();
	}
	
	public static int getSentenceId(String prefix, String sentenceURI){
		return Integer.parseInt(sentenceURI.substring(prefix.length()+1));
	}
	
	public static String getSentenceURI(String prefix, int sentenceId){
		return prefix+S+sentenceId;
	}
	
	/**
	 * This method returns an empty model OWL_DL_MEM
	 * and should be used whenever an empty model is needed, 
	 * so it can be globally configured here
	 * @return
	 */
	@Deprecated
	public static OntModel getDefaultModel() {
		OntModel ret = ModelFactory.createOntologyModel(OntModelSpec.OWL_DL_MEM, ModelFactory.createDefaultModel());
		return ret;
	}
	
}
